<template>
<div>
  <h1 class="h1">{{name}}</h1>
  <img :src=a class="i1">

</div>

</template>

<script>
export default {
  name: "ImgView",
  data() {
    return {
      a:'',
      name:''
    }
  },
  mounted() {
    console.log(this.$route.query)
    this.a=this.$route.query.image;
    this.name=this.$route.query.imgName;
  },

}
</script>

<style scoped>
.i1{
width:350px;

}
.h1{
margin-top: 200px;
}
</style>